home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 001159_sanders@bsdi.com _Wed May 19 19:19:58 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  3KB

  1. Return-Path: <sanders@bsdi.com>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA02664; Wed, 19 May 93 19:19:58 MET DST
  4. Errors-To: sanders@bsdi.com
  5. Received: from austin.BSDI.COM by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  6.     id AA11773; Wed, 19 May 1993 19:41:01 +0200
  7. Received: from localhost by austin.BSDI.COM (5.67/1.37)
  8.     id AA04120; Wed, 19 May 93 12:40:51 -0500
  9. Message-Id: <9305191740.AA04120@austin.BSDI.COM>
  10. To: www-talk@nxoc01.cern.ch
  11. Subject: MIME and HTRQ/V1.0 question
  12. Errors-To: sanders@bsdi.com
  13. Reply-To: sanders@bsdi.com
  14. Organization: Berkeley Software Design, Inc.
  15. Date: Wed, 19 May 1993 12:40:51 -0500
  16. From: Tony Sanders <sanders@bsdi.com>
  17.  
  18. When returning a document of unknown content what should the header
  19. format say?
  20.  
  21. Options as I see it are:
  22.  
  23. 1   Content-type: text/plain\n\n[raw data]
  24.  
  25. 2   Context-type: text/html\n\n<PLAINTEXT>\n[raw data]
  26.     [Is <PLAINTEXT> being depreciated?]
  27.  
  28. 3   Context-type: application/binary [for binary files and]
  29.     Context-type: text/plain [for text files]
  30.  
  31. I'm assuming option #3 unless I hear otherwise.  It will work well
  32. if browers do something like <PLAINTEXT> for text/plain and
  33. pop up a save file dialog for application/binary.
  34.  
  35. Marc: How is Mosaic going to handle things like .cave files?
  36. are there going to be MIME types added for stuff like this?
  37. Here are my current plans.
  38.     # XXX: need to make tar, uu, z, and Z be encodings
  39.     #
  40.     $ext{'aiff'}  = $ext{'AIFF'}  = 'application/binary';
  41.     $ext{'au'}    = $ext{'AU'}    = 'application/binary';
  42.     $ext{'snd'}   = $ext{'SND'}   = 'application/binary';
  43.     $ext{'cave'}  = $ext{'CAVE'}  = 'application/binary';
  44.     $ext{'dvi'}   = $ext{'DVI'}   = 'application/dvi';
  45.     $ext{'evlm'}  = $ext{'EVLM'}  = 'application/binary';
  46.     $ext{'gif'}   = $ext{'GIF'}   = 'image/binary';
  47.     $ext{'html'}  = $ext{'HTML'}  = 'text/html';
  48.     $ext{'jpeg'}  = $ext{'JPEG'}  = 'image/jpeg';
  49.     $ext{'jpg'}   = $ext{'JPG'}   = 'image/jpeg';
  50.     $ext{'mime'}  = $ext{'MIME'}  = 'application/binary';
  51.     $ext{'movie'} = $ext{'MOVIE'} = 'application/binary';
  52.     $ext{'mpeg'}  = $ext{'MPEG'}  = 'application/binary';
  53.     $ext{'mpg'}   = $ext{'MPG'}   = 'application/binary';
  54.     $ext{'ps'}    = $ext{'PS'}    = 'application/postscript';
  55.     $ext{'rgb'}   = $ext{'RGB'}   = 'application/binary';
  56.     $ext{'rtf'}   = $ext{'RTF'}   = 'application/binary';
  57.     $ext{'tar'}   = $ext{'TAR'}   = 'application/binary';
  58.     $ext{'hqx'}   = $ext{'HQX'}   = 'application/binary';
  59.     $ext{'uu'}    = $ext{'UU'}    = 'application/binary';
  60.     $ext{'tex'}   = $ext{'TEX'}   = 'application/binary';
  61.     $ext{'tiff'}  = $ext{'TIFF'}  = 'application/binary';
  62.     $ext{'tif'}   = $ext{'TIF'}   = 'application/binary';
  63.     $ext{'txt'}   = $ext{'TXT'}   = 'application/binary';
  64.     $ext{'text'}  = $ext{'TEXT'}  = 'application/binary';
  65.     $ext{'xbm'}   = $ext{'XBM'}   = 'image/xbitmap';
  66.     $ext{'xwd'}   = $ext{'XWD'}   = 'image/xwindowdump';
  67.     $ext{'z'}     = $ext{'Z'}     = 'application/binary';      # different!
  68. I also need to figure out how to the the encoding stuff work
  69. for MIME.  Guess I need to study the RFC for a while.
  70.  
  71. Comments/suggestions?  lemme know
  72.  
  73. --sanders@bsdi.com